<%
dataKeyType = dataKeyType.replace('int','number')
keyType = keyType.replace('int','number')
%>
//#region  <%= dataKeyName %>Index
    public _<%= dataKeyName %>IndexDict :  Map<<%= dataKeyType %>, <%= keyType %>>

    private <%= initMethodName %>()
    {
        this._<%= dataKeyName %>IndexDict = this._headJsonData.<%= dataKeyName %>Index;
        //初始化完之后销毁, 减小内存占用
        this._headJsonData.<%= dataKeyName %>Index = undefined
    }

    public  Get<%= className%>With<%=dataKeyName %>Index(indexKey : <%= dataKeyType %>) : <%= className %>
    {
        if(this._<%= dataKeyName %>IndexDict.has(indexKey))
        {
            return this.GetConfigByKey(this._<%= dataKeyName %>IndexDict[indexKey]);
        }
        return null;
    }
//#endregion

